<template>
	<view>
		<view class="detail">
			<rich-text :nodes="detail.content"></rich-text>
		</view>
		<view class="null"></view>
		<view class="lc-foot">
			<view @click="settled">确认签署</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				app: getApp().globalData,
				detail: {}
			}
		},
		onLoad(e) {
			this.app.post('/api/chef/user/user_xieyi', {
				id: 12
			}).then(res => {
				console.log(res)
				this.detail = res
			})
		},
		methods: {
			settled() {
				uni.navigateTo({
					url: '/pages/lc/subShop/subShop'
				})
			}
		}
	}
</script>

<style lang="scss">
	.detail {
		padding: 30rpx;
	}

	.null {
		width: 750rpx;
		height: 122rpx;
	}

	.lc-foot {
		width: 750rpx;
		height: 122rpx;
		position: fixed;
		background-color: #FFFFFF;
		bottom: 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;

		view {
			width: 690rpx;
			line-height: 82rpx;
			text-align: center;
			background-color: #84BD00;
			border-radius: 16rpx;
			font-size: 30rpx;
			color: #FFFFFF;
		}
	}
</style>